package com.gitee.hongruisun.fileupload;

public class FileParseServiceImpl implements FileParseService{

    /**
     * 解析文件调用接口
     *
     * @param inputPath
     * @param outPutPath
     * @param typeId
     * @return
     */
    @Override
    public String parse(String inputPath, String outPutPath, int typeId) {
        AbstractStrategyTemplate handle = AnalysisStrateGyFactory.getStrategy(typeId);  //buildStratey(inPutPath, outPathPath, typeId);
        long successNum = handle.analysis(inputPath,outPutPath);
        String message = "成功解析" + successNum + "条数据";
        return message;
    }
}
